package net.lijingye.education.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;

/**
 * Created by LijingYe on 2016/3/26.
 */
public class PageVO {
    @JSONField(name = "total_count", ordinal = 0, serialzeFeatures = SerializerFeature.WriteMapNullValue)
    private Integer totalCount;
    @JSONField(name = "page_size", ordinal = 1, serialzeFeatures = SerializerFeature.WriteMapNullValue)
    private Integer pageSize;
    @JSONField(name = "page_count", ordinal = 2, serialzeFeatures = SerializerFeature.WriteMapNullValue)
    private Integer pageCount;
    @JSONField(name = "current_page", ordinal = 3, serialzeFeatures = SerializerFeature.WriteMapNullValue)
    private Integer currentPage;

    public PageVO(Integer totalCount, Integer pageSize, Integer pageCount, Integer currentPage) {
        this.totalCount = totalCount;
        this.pageSize = pageSize;
        this.pageCount = pageCount;
        this.currentPage = currentPage;
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageCount() {
        return pageCount;
    }

    public void setPageCount(Integer pageCount) {
        this.pageCount = pageCount;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    @Override
    public String toString() {
        return "PageVO{" +
                "totalCount=" + totalCount +
                ", pageSize=" + pageSize +
                ", pageCount=" + pageCount +
                ", currentPage=" + currentPage +
                '}';
    }
}
